home *** CD-ROM | disk | FTP | other *** search
- Path: charnel.ecst.csuchico.edu!usenet
- From: Phil Hoff <phoff@ecst.csuchico.edu>
- Newsgroups: comp.sys.cbm
- Subject: Re: Want to read/record temp with c64
- Date: 9 Feb 1996 16:28:27 GMT
- Organization: California State University, Chico
- Message-ID: <4ffsnb$jcm@charnel.ecst.csuchico.edu>
- References: <4e75jl$je4@news.csus.edu> <4ff413$jeb@onramp.arc.nasa.gov>
- NNTP-Posting-Host: hoff.ecst.csuchico.edu
-
-
- >
- > Two software appraoches are possible: table lookup and algebraic calculation.
- >
- Algebraic calculation requires you create a formula
- > to determine the reading and does require a few samples in a table to start,
- > possibly a graph.
- >
- If you go the algebraic calculation route, you will most likely find
- that the resistance vs temperature will follow the relationship:
- R=a*exp(b/T)
- a and b are the constants you must evaluate (preferably by using the
- method of least squares on a few data points), R is the resistance
- and T is the KELVIN temperature, which is the Centigrade temp+273.
-
- However, if you want to spring for just a few bucks, you can get an
- integrated circuit temp sensor that will not only give you a voltage
- or current that varies linearly with temperature, but is numerically
- EQUAL to temperature. The current ones are preferred if you want to
- be able to do remote sensing, because the voltage drop in long wires
- will not introduce errors. These devices are made by a number of IC
- manufacturers, with the primary ones probably being Analog Devices,
- Maxim and National.
-
-